\hypertarget{classWorkflow}{
\section{Workflow Class Reference}
\label{classWorkflow}\index{Workflow@{Workflow}}
}
\hyperlink{classWorkflow}{Workflow} class represents a set of tasks that some \hyperlink{classUI}{UI} submits to the distributed system.  


{\tt \#include $<$workflow.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classWorkflow_887b694b379f08036c75c14c5802cbe9}{Workflow} (void)
\begin{CompactList}\small\item\em Default Constructor. \item\end{CompactList}\item 
\hyperlink{classWorkflow_dd7af69a702ce70d15b1a690570b238f}{Workflow} (int id)
\begin{CompactList}\small\item\em Constructor specifying current \hyperlink{classWorkflow}{Workflow} ID. \item\end{CompactList}\item 
\hypertarget{classWorkflow_7921bd15f48d8ec6787c02e44fc82e58}{
\hyperlink{classWorkflow_7921bd15f48d8ec6787c02e44fc82e58}{$\sim$Workflow} (void)}
\label{classWorkflow_7921bd15f48d8ec6787c02e44fc82e58}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{classTaskDescriptor}{TaskDescriptor} $>$ \& \hyperlink{classWorkflow_db69b09c502cb1b83a69319e69413af4}{getTasks} (void) const 
\begin{CompactList}\small\item\em Return a reference to \hyperlink{classTaskDescriptor}{TaskDescriptor} container. \item\end{CompactList}\item 
void \hyperlink{classWorkflow_ceaefc860d8f0a17c06b3fe0e3e36544}{setTasks} (const std::vector$<$ \hyperlink{classTaskDescriptor}{TaskDescriptor} $>$ \&val)
\begin{CompactList}\small\item\em Set current \hyperlink{classTaskDescriptor}{TaskDescriptor} container. \item\end{CompactList}\item 
const \hyperlink{classTaskDescriptor}{TaskDescriptor} \& \hyperlink{classWorkflow_ec3c1e57f3c280c2949963dd55592f08}{getTask} (int index) const 
\begin{CompactList}\small\item\em Access the element at the position index in the container. \item\end{CompactList}\item 
int \hyperlink{classWorkflow_0f627e1805c27c11dd8ad1e793df8826}{addTask} (const \hyperlink{classTaskDescriptor}{TaskDescriptor} \&ts)
\begin{CompactList}\small\item\em Insert a \hyperlink{classTaskDescriptor}{TaskDescriptor} in the container. \item\end{CompactList}\item 
int \hyperlink{classWorkflow_dc36761398c882fcb2fdaac501cebb04}{getID} (void) const 
\begin{CompactList}\small\item\em Returns current \hyperlink{classWorkflow}{Workflow} id. \item\end{CompactList}\item 
void \hyperlink{classWorkflow_dab73edc044cefd04b870312f31e87c7}{setID} (int val)
\item 
size\_\-t \hyperlink{classWorkflow_9f83c940a67749cf7ee88224a4e41035}{size} (void) const 
\begin{CompactList}\small\item\em Returns container size. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
\hypertarget{classWorkflow_c98d07dd8f7b70e16ccb9a01abf56b9c}{
class \textbf{boost::serialization::access}}
\label{classWorkflow_c98d07dd8f7b70e16ccb9a01abf56b9c}

\item 
\hypertarget{classWorkflow_cd108b40a1e888438d8fbbded8d6a57a}{
std::ostream \& \textbf{operator$<$$<$} (std::ostream \&os, const \hyperlink{classWorkflow}{Workflow} \&wf)}
\label{classWorkflow_cd108b40a1e888438d8fbbded8d6a57a}

\end{CompactItemize}


\subsection{Detailed Description}
\hyperlink{classWorkflow}{Workflow} class represents a set of tasks that some \hyperlink{classUI}{UI} submits to the distributed system. 

More in detail a \hyperlink{classWorkflow}{Workflow} is a container of \hyperlink{classTaskDescriptor}{TaskDescriptor} identified by an ID. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classWorkflow_887b694b379f08036c75c14c5802cbe9}{
\index{Workflow@{Workflow}!Workflow@{Workflow}}
\index{Workflow@{Workflow}!Workflow@{Workflow}}
\subsubsection[Workflow]{\setlength{\rightskip}{0pt plus 5cm}Workflow::Workflow (void)}}
\label{classWorkflow_887b694b379f08036c75c14c5802cbe9}


Default Constructor. 

\begin{Desc}
\item[Note:]after using this constructor \_\-ID must be set manually. \end{Desc}
\hypertarget{classWorkflow_dd7af69a702ce70d15b1a690570b238f}{
\index{Workflow@{Workflow}!Workflow@{Workflow}}
\index{Workflow@{Workflow}!Workflow@{Workflow}}
\subsubsection[Workflow]{\setlength{\rightskip}{0pt plus 5cm}Workflow::Workflow (int {\em id})}}
\label{classWorkflow_dd7af69a702ce70d15b1a690570b238f}


Constructor specifying current \hyperlink{classWorkflow}{Workflow} ID. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em id}]current \hyperlink{classWorkflow}{Workflow} ID. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\hypertarget{classWorkflow_db69b09c502cb1b83a69319e69413af4}{
\index{Workflow@{Workflow}!getTasks@{getTasks}}
\index{getTasks@{getTasks}!Workflow@{Workflow}}
\subsubsection[getTasks]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf TaskDescriptor} $>$ \& Workflow::getTasks (void) const}}
\label{classWorkflow_db69b09c502cb1b83a69319e69413af4}


Return a reference to \hyperlink{classTaskDescriptor}{TaskDescriptor} container. 

\begin{Desc}
\item[Returns:]a reference to \hyperlink{classTaskDescriptor}{TaskDescriptor} container. \end{Desc}
\hypertarget{classWorkflow_ceaefc860d8f0a17c06b3fe0e3e36544}{
\index{Workflow@{Workflow}!setTasks@{setTasks}}
\index{setTasks@{setTasks}!Workflow@{Workflow}}
\subsubsection[setTasks]{\setlength{\rightskip}{0pt plus 5cm}void Workflow::setTasks (const std::vector$<$ {\bf TaskDescriptor} $>$ \& {\em val})}}
\label{classWorkflow_ceaefc860d8f0a17c06b3fe0e3e36544}


Set current \hyperlink{classTaskDescriptor}{TaskDescriptor} container. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]current \hyperlink{classTaskDescriptor}{TaskDescriptor} container. \end{description}
\end{Desc}
\hypertarget{classWorkflow_ec3c1e57f3c280c2949963dd55592f08}{
\index{Workflow@{Workflow}!getTask@{getTask}}
\index{getTask@{getTask}!Workflow@{Workflow}}
\subsubsection[getTask]{\setlength{\rightskip}{0pt plus 5cm}const {\bf TaskDescriptor} \& Workflow::getTask (int {\em index}) const}}
\label{classWorkflow_ec3c1e57f3c280c2949963dd55592f08}


Access the element at the position index in the container. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]the position in the container of the element we desire. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a constant reference to the element at the position index. \end{Desc}
\hypertarget{classWorkflow_0f627e1805c27c11dd8ad1e793df8826}{
\index{Workflow@{Workflow}!addTask@{addTask}}
\index{addTask@{addTask}!Workflow@{Workflow}}
\subsubsection[addTask]{\setlength{\rightskip}{0pt plus 5cm}int Workflow::addTask (const {\bf TaskDescriptor} \& {\em ts})}}
\label{classWorkflow_0f627e1805c27c11dd8ad1e793df8826}


Insert a \hyperlink{classTaskDescriptor}{TaskDescriptor} in the container. 

No position are specified, so it will be pushed back.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ts}]the \hyperlink{classTaskDescriptor}{TaskDescriptor} we want to add. \end{description}
\end{Desc}
\hypertarget{classWorkflow_dc36761398c882fcb2fdaac501cebb04}{
\index{Workflow@{Workflow}!getID@{getID}}
\index{getID@{getID}!Workflow@{Workflow}}
\subsubsection[getID]{\setlength{\rightskip}{0pt plus 5cm}int Workflow::getID (void) const}}
\label{classWorkflow_dc36761398c882fcb2fdaac501cebb04}


Returns current \hyperlink{classWorkflow}{Workflow} id. 

\begin{Desc}
\item[Returns:]current \hyperlink{classWorkflow}{Workflow} id. \end{Desc}
\hypertarget{classWorkflow_dab73edc044cefd04b870312f31e87c7}{
\index{Workflow@{Workflow}!setID@{setID}}
\index{setID@{setID}!Workflow@{Workflow}}
\subsubsection[setID]{\setlength{\rightskip}{0pt plus 5cm}void Workflow::setID (int {\em val})}}
\label{classWorkflow_dab73edc044cefd04b870312f31e87c7}


Set current \hyperlink{classWorkflow}{Workflow} id. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]current \hyperlink{classWorkflow}{Workflow} id. \end{description}
\end{Desc}
\hypertarget{classWorkflow_9f83c940a67749cf7ee88224a4e41035}{
\index{Workflow@{Workflow}!size@{size}}
\index{size@{size}!Workflow@{Workflow}}
\subsubsection[size]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t Workflow::size (void) const}}
\label{classWorkflow_9f83c940a67749cf7ee88224a4e41035}


Returns container size. 

\begin{Desc}
\item[Returns:]container size. \end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{workflow_8h}{workflow.h}\item 
\hyperlink{workflow_8cpp}{workflow.cpp}\end{CompactItemize}
